<!--
  Generated template for the SettingsPrintPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-buttons start>
      <button ion-button icon-only (click)="dismiss()">
        <ion-icon name="arrow-back"></ion-icon>
      </button>
    </ion-buttons>
    <ion-title>{{ 'PRINT_SETTINGS' | translate }}</ion-title>
  </ion-navbar>

</ion-header>

<ion-content padding>
  <ion-list>

    <ion-list-header>
      {{ 'OPERATION_ENVIRONMENT' | translate }}
    </ion-list-header>

    <ion-item>
      <ion-label fixed>{{ 'IP_ADDRESS' | translate }}</ion-label>
      <ion-input type="text" value="" [(ngModel)]="ipAddr" (ngModelChange)="changeIpAddr(ipAddr)"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label fixed>{{ 'PORT' | translate }}</ion-label>
      <ion-input type="text" [(ngModel)]="port" (ngModelChange)="changePort(port)"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label fixed>{{ 'DEVICE_ID' | translate }}</ion-label>
      <ion-input type="text" [(ngModel)]="deviceId" (ngModelChange)="changeDeviceId(deviceId)"></ion-input>
    </ion-item>

  </ion-list>

  <ion-list>
    <ion-item>
      <ion-label>{{ 'IS_PRINT_ORDER_BY_DEPARTMENT' | translate }}</ion-label>
      <ion-checkbox color="blue" [(ngModel)]="global.isPrintByDepartment" (click)="changePrintBy(global.isPrintByDepartment)"></ion-checkbox>
    </ion-item>
  </ion-list>
</ion-content>